package top.goldenyear.porpoise.system.setting.config;

import org.noear.solon.annotation.Bean;
import org.noear.solon.annotation.Configuration;
import org.noear.solon.annotation.Inject;
import top.goldenyear.porpoise.system.setting.service.IDictItemService;
import top.goldenyear.porpoise.system.setting.util.DictUtils;

/**
 * @author airhead
 */
@Configuration
public class DictConfig {

  @Bean
  @SuppressWarnings("InstantiationOfUtilityClass")
  public DictUtils dictUtils(@Inject IDictItemService dictItemService) {
    DictUtils.init(dictItemService);
    return new DictUtils();
  }
}
